
<!DOCTYPE html>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../../js/header.js"></script>


<?php
	require("../../DBops.php");
 
	session_start();
	$con = connect("localhost", "root", "", "lab");
	 $ID=  $_GET["id"];

	$result = query($con, "*", "personalinfo", "ID", $_SESSION['user']);
			$row = mysql_fetch_array($result);
			$teamid=$row['projecteamID'];
			$result = query($con, "*", "projecteam", "ID", $ID);
			$row = mysql_fetch_array($result);
			$name=$row['name'];
	
  echo "<title>宽带组 : $name 会议纪要</title>

  <link href=\"../../css/bootstrapmin.css\" rel=\"stylesheet\" media=\"screen\">
  <link href=\"../../css/style.css\" rel=\"stylesheet\">";?>

	<script type="text/javascript">
	$(document).ready(function(){
		//首先将#back-to-top隐藏
		$("#back-to-top").hide();
		//当滚动条的位置处于距顶部100像素以下时，跳转链接出现，否则消失
		$(function () {
			$(window).scroll(function(){
				if ($(window).scrollTop()>100){
					$("#back-to-top").fadeIn(700);
				}
				else
				{
					$("#back-to-top").fadeOut(700);
				}
			});
			//当点击跳转链接后，回到页面顶部位置
			$("#back-to-top").click(function(){
				$('body,html').animate({scrollTop:0},1000);
				return false;
			});
			$('table.head').css({'cursor':'pointer'});
			$('table.head').click(function(){
				window.open("http://bt.byr.cn/");
			});
		});

        $('#task_progress').qtip({
            position:{
                corner:{
                    target:'bottomMiddle',
                    tooltip:'topMiddle'
                },
                adjust:{
                    screen:true
                }
            },
            show:{
                when: 'click',
                solo:true
            },
            hide: 'unfocus',
            style:{
                tip:true,
                border:{
                    width:0,
                    radius:4
                },
                width:400
            },
            content:{
                url:'task_progress.php',
                title : {
                    text : '活动详情',
                    button : 'x'
                }
            }
        });

	});

</script>
</head>
<?php
require("header.php");
?>
<!-- end of header -->
<div id= 'achievement1'>
	
	
	<?php
	if(isset($_SESSION['user']))
	{
		echo "<div style='height:30px;background:#A4D3EE;'>
		      
              <p  style='margin-right:10px;float:right;'>登录为: <a href = \"../../infor.php?id=".$_SESSION['user']."\">".$_SESSION['user']."</a></font>&nbsp&nbsp<a  onclick=\"if(confirm('确定要退出系统吗?')){parent.location.href ='../../logout.php'}\" href=\"javascript:void(0)\">退出</a></font></p></div>";
	}
	
	
	$sql  = "select * from weeklyreport where ID = '".$_GET['id']."' order by datetime desc";
	$result = mysql_query($sql, $con);
	
  	echo"<div style='width:250px;height:;float:right;background:;z-index:10px;'>
		<p><strong>&nbsp;目录<strong></p>";
		
		 while($row = mysql_fetch_array($result))  {                 
 			echo"      
				 <p ><font size='1'><a href='#".$row['datetime']."'>".$row['datetime']."";
				 echo"会议纪要";echo"（".$row['name']."）</a></font></p>";
		}
	echo"</div>";

	$sql  = "select * from weeklyreport where ID = '".$_GET['id']."' order by datetime desc";
	$result = mysql_query($sql, $con);
while($row = mysql_fetch_array($result))
{
	echo "<div style='background:;'><!-- /content -->
	
	<p id=\"".$row['datetime']."\"><strong><font style='color:#1C86EE;'>&nbsp;&nbsp;".$row['datetime']." 会议纪要($name)</strong></p>
<p style=\"clear:left;\"></font><strong>&nbsp;&nbsp;<font style='color:#458B00;'>
主要内容：</font></strong>
</p>
<ol><font style='color:#050505;size:1px;'>
".nl2br($row['completed'])."</font>
</ol>

<p style=\"clear:left;\">&nbsp;&nbsp;<strong><font style='color:#458B00;'>
下一步计划：</font></strong>
</p>
<ol><font style='color:#050505;size:1px;'>
".nl2br($row['uncompleted'])."</font>

</ol>

<p style=\"clear:left;\"><strong>&nbsp;&nbsp;<font style='color:#458B00;'>
其他（建议）：</font></strong>
</p>
<ol><font style='color:#050505;size:1px;'>
".nl2br($row['plan'])."</font>
</ol>
<hr />

</div>

 <!-- /content -->";      
}   
 
echo " 
</div>
        
</body>";


?>

</html>